import {mergeOptions} from "../utils/index";

export function initGlobalApi(Vue) {

    Vue.options = {} // {created:{a,b,c},watch:[a,b]}

    Vue.Mixin = function (mixin) {

        // 对象的合并
        this.options = mergeOptions(this.options, mixin)
        console.log(Vue.options,999)
    }
}
